import fs from 'fs';
import path from 'path';

export function copyTemplateFile(templateFileDir: string, outputDir: string) {
  const templateFiles = fs.readdirSync(templateFileDir);
  templateFiles.filter(file => !file.endsWith('.d.ts')).forEach(file => {
    const templateFile = path.join(templateFileDir, file);
    const templateContent = fs.readFileSync(templateFile, 'utf-8');
    fs.writeFileSync(path.join(outputDir, file), templateContent);
  });
}